from scrapy import cmdline

cmdline.execute("scrapy crawl izanmei".split())  # izanmei 是爬虫的名字